<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>list-float</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        body{
            background-color: #eee;
        }

        h1{
            margin-left: 10px;
        }

        ul{
            overflow: hidden;
        }

        li{
            float: left;
            list-style: none;
            width: 280px;
            height: 280px;
            margin: 10px;
            background-color: #fff;
            text-align: center;
        }

        li img{
            width: 260px;
        }

        a{
            display: inline-block;
            text-decoration: none;
            color: #eee;
            margin-top: 3px;
            height: 35px;
            width: 150px;
            line-height: 35px;
            background-color: #707070;
        }

        p{
            color: #707070;
            font-size: 20px;
            margin: 15px auto;
        }

    </style>
</head>
<body>
    <h1>诱惑美食</h1>
    <ul>
        <li>
            <p>Country bread with dry figs</p>
            <img src="./images/1.jpg" alt="">
            <a href="#">Free Download</a>
        </li>
        <li>
            <p>Fruits</p>
            <img src="./images/2.jpg" alt="">
            <a href="#">Free Download</a>
        </li>
        <li>
            <p>Bell Pepper</p>
            <img src="./images/3.jpg" alt="">
            <a href="#">Free Download</a>
        </li>
        <li>
            <p>Oranges</p>
            <img src="./images/4.jpg" alt="">
            <a href="#">Free Download</a>
        </li>
        <li>
            <p>Healthy breakfast</p>
            <img src="./images/5.jpg" alt="">
            <a href="#">Free Download</a>
        </li>
        <li>
            <p>Homemade Cupcakes</p>
            <img src="./images/6.jpg" alt="">
            <a href="#">Free Download</a>
        </li>
        <li>
            <p>Strawberries</p>
            <img src="./images/7.jpg" alt="">
            <a href="#">Free Download</a>
        </li>
        <li>
            <p>Custard Croissant</p>
            <img src="./images/8.jpg" alt="">
            <a href="#">Free Download</a>
        </li>
    </ul>

    <h1>春夏秋冬</h1>
    <ul>
        <li>
            <p>Country bread with dry figs</p>
            <img src="./images/1.jpg" alt="">
            <a href="#">Free Download</a>
        </li>
        <li>
            <p>Fruits</p>
            <img src="./images/2.jpg" alt="">
            <a href="#">Free Download</a>
        </li>
        <li>
            <p>Bell Pepper</p>
            <img src="./images/3.jpg" alt="">
            <a href="#">Free Download</a>
        </li>
        <li>
            <p>Oranges</p>
            <img src="./images/4.jpg" alt="">
            <a href="#">Free Download</a>
        </li>
        <li>
            <p>Healthy breakfast</p>
            <img src="./images/5.jpg" alt="">
            <a href="#">Free Download</a>
        </li>
        <li>
            <p>Homemade Cupcakes</p>
            <img src="./images/6.jpg" alt="">
            <a href="#">Free Download</a>
        </li>
        <li>
            <p>Strawberries</p>
            <img src="./images/7.jpg" alt="">
            <a href="#">Free Download</a>
        </li>
        <li>
            <p>Custard Croissant</p>
            <img src="./images/8.jpg" alt="">
            <a href="#">Free Download</a>
        </li>
    </ul>
</body>
</html>